package com.travel.recommend.feign;

import com.travel.common.to.AttractionInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("travel-sight")
public interface SightFeignService {

    @RequestMapping("/sight/attractioninfo/getBehaviorNum/{userId}")
    Integer getBehaviorNum(@PathVariable("userId") Integer userId);

    @RequestMapping("/sight/attractioninfo/getAttractionByTagName/{tagName}")
    List<AttractionInfoTo> getAttractionByTagName(@PathVariable("tagName")String tagName);

    @RequestMapping("/sight/attractioninfo/getAttractionsByIds")
    List<AttractionInfoTo> getAttractionsByIds(@RequestParam("ids")List<Integer> ids);

    @RequestMapping("/sight/attractioninfo/getAllAttraction")
    List<AttractionInfoTo> getAllAttraction();

}
